package org.example.design.designmode.flyweight.jdk;

public class IntegerTest {
    public static void main(String[] args) {
        Integer a=Integer.valueOf(100);
        Integer b=100;

        Integer c=Integer.valueOf(1000);
        Integer d=1000;
        System.out.println(a.equals(b));
        System.out.println(c.equals(d));
        System.out.println(c.equals(d));
    }
}
